﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using SinsenWeb.Models.ViewDataTypes;


namespace SinsenWeb.Views.SubController
{
    public partial class Messages : ViewPageBase<MessageContainer>
    {
        protected string RenderMessages(List<string> messages, string cssClass)
        {
            var ret = new StringBuilder();

            foreach (var message in messages)
            {
                ret.Append(@"<p class=""");
                ret.Append(cssClass);
                ret.Append(@""">");
                ret.Append(H(message));
                ret.Append("</p>");
            }
            return ret.ToString();
        }

    }
}
